<?php
//
// +------------------------------------------------------------------------+
// | PHP Version 5                                                          |
// +------------------------------------------------------------------------+
// | Copyright (c) All rights reserved.                                     |
// +------------------------------------------------------------------------+
// | This source file is subject to version 3.00 of the PHP License,        |
// | that is available at http://www.php.net/license/3_0.txt.               |
// | If you did not receive a copy of the PHP license and are unable to     |
// | obtain it through the world-wide-web, please send a note to            |
// | license@php.net so we can mail you a copy immediately.                 |
// +------------------------------------------------------------------------+
// | Author:                                                                |
// +------------------------------------------------------------------------+
//
// $Id$
//


/**
 * SmartPHP_Config_Ini 
 * 
 * @package 
 * @version $id$
 * @copyright 1997-2008 Garfield
 * @author Garfield<garfield0601@gmail.com> 
 * @license http://framework.zend.com/license/new-bsd     New BSD License
 */
class SmartPHP_Config_Ini
{
    
    /**
     * __construct 
     * 
	 * @assert("e:\test.ini") 
	 *
     * @param string $iniFile 
     * @access public
     * @return void
     */
    public function __construct( $iniFile )
    {
		$iniArray = parse_ini_file($iniFile , true);
		foreach($iniArray as $section=>$row)
		{
			foreach($row as $key=>$val)
			{
				 $this->$section->$key = $val;
			}
		}
    }
    
    /**
    * @return   array
    */
    public function getAllSections()
    {
       // TODO: implement
    }
}

?>
